import Koa from 'koa';
import router from './routes/index.ts';
import cors from 'koa2-cors';
const app = new Koa();
app.use(cors());
app.use(router.routes()).use(router.allowedMethods());



app.listen(9000, () => {
    console.log('服务启动')
})